package com.woniuxy.dao;


import com.woniuxy.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ManagerDao {
    int findCountByNameOrId(User user);
    List<User> selectAll();
    int addUser(User user);
    int updateUser(User user);
    int deleteUserById(int id);
    List<User> findUserByName(String username);
    List<User> search(String count);
    User findOneByName(String username);
}
